package lzzy.net.chaper04_jpa;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class CommentController {


    @Autowired
    private CommentService commentService;

    @GetMapping("/test/{page}/{size}")
    public String page(@PathVariable("page") int page,@PathVariable("size") int size){
        return commentService.selectAllPage(page,size).toString();
    }
}
